using Godot;
using System;
public class EditContent : Control
{
    public event Action<EditContent> RectChangedHandler;
    public Vector2 Position
    {
        get => RectPosition;
        set
        {
            if (value != RectPosition)
            {
                RectPosition = value;
                RectChangedHandler?.Invoke(this);
            }
        }
    }
    public float Scale
    {
        get => RectScale.x;
        set
        {
            if (value != RectScale.x)
            {
                RectScale = new Vector2(value, value);
                RectChangedHandler?.Invoke(this);
            }
        }
    }
}

